libxl: events: Assert that libxl_ctx_free is not called from a hook
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 26 Nov 2014 16:17:49 +0000 (16:17 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 10 Dec 2014 13:48:30 +0000 (13:48 +0000)
commitf49f9b4114d59a67b53322f3f6148ed0db497dca
tree4eaceab4c074ae55d17133bc8f15be12f53df38f
parentd8582553aaa074c7981f84cd326f95e38625a22c
libxl: events: Assert that libxl_ctx_free is not called from a hook

No-one in their right mind would do this, and if they did everything
would definitely collapse.  Arrange that if this happens, we crash
ASAP.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Tested-by: Ian Campbell <ian.campbell@citrix.com>
Release-Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
tools/libxl/libxl.c